-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation: Fix 'ariaLabel' block support #66943
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for your quick PR here :) This is awesome!
From my perspective this looks great and tests week!
Since it was my ticket though, I want to leave a bit of time for others like @getdave to chime in and provide their feedback :)
Actually @up1512001 looks like the test failure here in CI is legit. Seems like some of the test snapshots need to be updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the rationale provided by @fabiankaegy in the Issue this seems logical to me. Do we have a precedent in any other Core blocks?
@getdave As of #41744 we have a block support for Maybe @richtabor has an opinion as I know he has spent some time trying to clean up the Advanced panel |
I agree. Let's solve this using the method from #41744. |
Let's be consistent with the other approaches then. I'm curious as to why we didn't provide a UI in the Group block. |
@getdave
And agreed 👍 @up1512001 can you make that update? :) |
Thanks. I should have looked at that more carefully. That seems entirely logical. We can always add a control later if we need. |
I'm a bit confused, since the Navigation block already supports |
This is dynamic block and inside editor user only sees like
that's why
Let me know if I am missing anything 🙇♂️ |
So does that mean that the current Navigation block Or is this PR trying to change how aria-label attributes are handled server-side? Sorry if I misunderstood something. I'm trying to understand what this PR is trying to achieve. |
@Mamaduka added early return in Screen.Recording.2024-11-13.at.23.28.25.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the follow-ups, @up1512001!
Everything is working as expected ✅
What?
Added text control field to navigation block to specify other accessible name apart from menu name.
Why?
Closes #66935
How?
accessibleMenuName
attribute and storing name provided in text field.aria-lable
to with provided attribute and if that's empty then applying fallback label with menu name.Testing Instructions
Settings > Advance
and add any text toAccessible menu name
field.Screenshots or screencast
Screen.Recording.2024-11-12.at.23.14.44.mov